package com.meilai.project.service.workflow;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.meilai.project.entity.workflow.WorkFlowDefault;
import com.meilai.project.vo.workflow.WorkFlowDefaultListVO;

/**
 * @author 张驰
 * @date 2020/5/29 15:43
 */
public interface WorkFlowDefaultService extends IService<WorkFlowDefault> {
    Page<WorkFlowDefaultListVO> selectPageList(Integer current_page, Integer page_size, String name,
                                               Integer status, Integer flow_type);
    boolean checkStatus(Integer flow_type);
    boolean changeStatus(Integer id,Integer flow_type,Integer status);
    boolean delProcess(Long id);

    WorkFlowDefault getActiveByFlowType(Integer flow_type);

    JSONObject getTypeNameAndRouter();
}
